package com.itheima.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;
import com.itheima.service.SetmealService;
import org.springframework.stereotype.Component;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

@Component
public class SetmealServiceMock implements SetmealService {
    @Override
    public void addSetmeal(Setmeal setmeal, Integer[] checkgroupIds) {

    }

    @Override
    public Map findPage(QueryPageBean queryPageBean) {
        return null;
    }

    @Override
    public List<Setmeal> findAllSetmeal()throws RuntimeException {
        throw new RuntimeException("当前访问人数过多！！！");
    }

    @Override
    public Setmeal findSetMealDetail(Integer id)throws RuntimeException {
        throw  new RuntimeException("当前访问人数过多，请稍后！！！");
    }

    @Override
    public Setmeal findSetmealById(Integer id) throws RuntimeException{
        throw  new RuntimeException("当前访问人数过多，请稍等！！！");
    }

    @Override
    public boolean saveBatch(Collection<Setmeal> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<Setmeal> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<Setmeal> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(Setmeal entity) {
        return false;
    }

    @Override
    public Setmeal getOne(Wrapper<Setmeal> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<Setmeal> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<Setmeal> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<Setmeal> getBaseMapper() {
        return null;
    }
}
